package com.owulia.leetcode.string;

public class IsFlipedString {

    public static boolean isFlipedString(String s1, String s2) {
        return s1.length() == s2.length() && (s1 + s1).contains(s2);
    }

    public static void main(String[] args) {
        System.out.print(isFlipedString("abcd", "acdb"));
    }
}
